import request from '@/config/axios'

// 记账企业月度费用 API
export const AccountingCompaniesMonthApi = {
  // 分页查询
  getAccountingCompaniesMonthPage: async (params: any) => {
    return await request.get({ url: '/oa/accounting-companies-month/page', params })
  },

  getAccountingCompaniesMonth: async (id: number) => {
    return await request.get({ url: '/oa/accounting-companies-month/get?id='+id })
  },

  // 新增
  createAccountingCompaniesMonth: async (data: any) => {
    return await request.post({ url: '/oa/accounting-companies-month/create', data })
  },

  // 编辑
  updateAccountingCompaniesMonth: async (data: any) => {
    return await request.put({ url: '/oa/accounting-companies-month/update', data })
  },

  // 删除
  deleteAccountingCompaniesMonth: async (id: number) => {
    return await request.delete({ url: '/oa/accounting-companies-month/delete', params: { id } })
  },
} 